<template>
  <div>
    新窗口<br />
    {{JSON.stringify(param)}}

  </div>
</template>

<script>
export default {
  created () {
    console.log(this.$route)
  },
  data () {
    return {
      param: null
    }
  },
  watch: {
    // 监听路由的变化
    $route (route) {
      console.log(route.query)
      this.param = route.query
    }
  }

}
</script>

<style>
</style>